home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re Using CW9 with ODF.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  2.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Using CW9 with ODF
  2. Sent:        5/25/96 7:39 AM
  3. Received:    5/28/96 8:25 AM
  4. From:        Masahiro Abe, m_abe@sainet.or.jp
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. At 17:06 96.05.23 -0700, Henri Lamiraux wrote:
  9. >--Emailer_-1378882723
  10. >Content-Type: text/plain; charset="US-ASCII"
  11. >
  12. >I have enclosed a document explaining how to use CW9 with ODF. Using CW9 
  13. >you should now be able to build ODF based parts for both PPC and 68K.  
  14. >
  15. >.......................................................................
  16. > Henri Lamiraux                                      lamiraux@apple.com
  17. > Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  18. >.......................................................................
  19.  
  20. Thanks Henri for kindly and timely providing valuable info.
  21.  
  22. Note. Suggested modification causes compile error for FWPriMem.cpp.
  23.  
  24. Document "CW9 Conversion" states:
  25.  
  26. [DOCUMENT BEGIN]
  27. 1) Use the Metrowerks set_new_handler instead of the ODF set_new_handler
  28.  
  29. - Open the file: ODF:Found:FWCommon:Sources:FWPriMem.cpp
  30. Add the following two lines:
  31.  
  32. // built with ODF.
  33.  
  34. #if defined(FW_DONT_USE_STD_LIB_SET_NEW_HANDLER)    <-------- New Line
  35.  
  36.         static pfvv gNewHandler = 0;
  37.  
  38.         #ifndef _MSC_VER
  39.         
  40.         .......
  41.  
  42.         extern "C" int _callnewh(size_t /* size */)
  43.         {
  44.             return 1;
  45.         }
  46.     
  47.     #endif
  48.  
  49. #endif    <-------- New Line
  50. [DOCUMENT END]
  51.  
  52. This case, gNewHandler is undefined. It should be:
  53.  
  54. // built with ODF.
  55.  
  56. static pfvv gNewHandler = 0;
  57.  
  58. #if defined(FW_DONT_USE_STD_LIB_SET_NEW_HANDLER)    <-------- New Line
  59.  
  60.         #ifndef _MSC_VER
  61.         
  62.         .......
  63.  
  64.         extern "C" int _callnewh(size_t /* size */)
  65.         {
  66.             return 1;
  67.         }
  68.     
  69.     #endif
  70.  
  71. #endif    <-------- New Line
  72.  
  73. Is this OK?
  74.  
  75. With this change and others suggested, built 68k parts ran fine, except
  76. ODFButton. When the stationary file is opened, it reports "error in OpenDoc
  77. or part". I'll try to figure out this, but I appreciate if anybody can
  78. suggest anything.
  79. #####################################################################
  80. ##### Masahiro Abe     <Internet   : m_abe@sainet.or.jp       > #####
  81. #####                  <Niftyserve : BXA03713@niftyserve.or.jp> #####
  82. #####################################################################
  83.